package stores;

import java.sql.SQLException;
import java.util.List;

import workspace.Workspace;
import beans.Tipus;

public interface TipusStore {

	List<Tipus> loadTipusLista(Workspace workspace) throws SQLException;

	Tipus insertTipus(Workspace workspace, Tipus ujTipus) throws SQLException;

	Tipus loadTipusByName(Workspace workspace, String tipusnev)
			throws SQLException;

	Tipus loadTipusById(Workspace workspace, long id) throws SQLException;

	Tipus updateTipus(Workspace workspace, Tipus updatedTipus)
			throws SQLException;

	boolean deleteTipus(Workspace workspace, long id) throws SQLException;

	boolean deleteTipusForTest(Workspace workspace, long id)
			throws SQLException;

}
